package com.benson.serlizable;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;

public class Blips {

	public static void main(String[] args) throws Exception {
		Blip1 b1 = new Blip1();
		Blip2 b2 = new Blip2();
		
		ObjectOutputStream o = new ObjectOutputStream(new FileOutputStream("Blips.out"));
		
		o.writeObject(b1);
		o.writeObject(b2);
		
		o.close();
		
		ObjectInputStream in = new ObjectInputStream(new FileInputStream("Blips.out"));
		
		b1 = (Blip1)in.readObject();
		b2 = (Blip2)in.readObject();
		
		
	}
}
